package h.d.bluetooth.visitor.sort;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author hdeom
 * @date 2014. 1. 14.
 *
 */
public class SortData implements Parcelable{

	private String time;
	private String fixName;
	private String name;
	private String macAddress;
	private long rssi;

	public SortData(){

		time = "";
		fixName = "";
		name = "";
		macAddress = "";
		rssi = -1;

	}

	public SortData(String time, String fixName, String name,
			String macAddress, short rssi) {
		this.time = time;
		this.fixName = fixName;
		this.name = name;
		this.macAddress = macAddress;
		this.rssi = rssi;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getFixName() {
		return fixName;
	}

	public void setFixName(String fixName) {
		this.fixName = fixName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}

	public long getRssi() {
		return rssi;
	}

	public void setRssi(short rssi) {
		this.rssi = rssi;
	}

	/**
	 * @author hdeom
	 * @date 2014. 1. 15.
	 * @param
	 * @return
	 *
	 **/
	@Override
	public int describeContents() {
		return 0;
	}

	/**
	 * @author hdeom
	 * @date 2014. 1. 15.
	 * @param
	 * @return
	 *
	 **/
	@Override
	public void writeToParcel(Parcel p, int flags) {

		p.writeString(time);
		p.writeString(name);
		p.writeString(fixName);
		p.writeString(macAddress);
		p.writeLong(rssi);

	}
}
